package com.eastfair.venuebooking.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.eastfair.core.base.entity.Entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import com.eastfair.core.base.entity.SuperEntity;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 实体类
 * 联系人关联表
 * </p>
 *
 * @author clm
 * @since 2022-06-13
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "ContactRefUpdateDTO", description = "联系人关联表")
public class ContactRefUpdateDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @NotNull(message = "请填写主键", groups = SuperEntity.Update.class)
    private Long id;

    /**
     * 是否启用：1是；0否
     */
    @ApiModelProperty(value = "是否启用：1是；0否")
    private Integer isEnabled;
    /**
     * 是否删除：1是；0否
     */
    @ApiModelProperty(value = "是否删除：1是；0否")
    private Integer isDeleted;
    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    private Long projectId;
    /**
     * 子系统id
     */
    @ApiModelProperty(value = "子系统id")
    private Long subsystemId;
    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    private Long tenantId;
    /**
     * 联系人id
     */
    @ApiModelProperty(value = "联系人id")
    private Long contactId;
    /**
     * 客户id, 商机id
     */
    @ApiModelProperty(value = "客户id, 商机id")
    private Long subjectId;
    /**
     * 模块类型，枚举，1.客户 2.商机
     */
    @ApiModelProperty(value = "模块类型，枚举，1.客户 2.商机")
    @Size(max = 20, message = "模块类型，枚举，1.客户 2.商机长度不能超过20")
    private String subjectType;
    /**
     * 是否是主要联系人 0。否 1是
     */
    @ApiModelProperty(value = "是否是主要联系人 0。否 1是")
    private Boolean important;

    private List<Long> subjectIds;

    private List<Long> contactIds;
}
